<!--script src="{HOME_THEME_PATH}libs/layui/layui.js"></script-->
<div class="d-col-md-8-10">
	<div class="d-yuanjiao-10 d-kuan d-waigao-20 d-beijing-baise d-bianhua-10">
		<div class="mneikuang-100 shangxia-10">
			<div class="container-10">
				<div class="row">
					<div class="col-xs-12 a  ">
						<div class="d-buhuanhang" >
							<div class="d-kuan d-wenzi-touming-90 d-buhuanhang d-quxian-0" onclick="location.href='/index.php?s=member&app=qiandao&c=home&m=index&quan={$id}'">
							
							{php $qiandaos=\Phpcmf\Service::M()->db->table('member_qiandao')->where('DATEDIFF(from_unixtime(`createtime`),now())=0')->where('quan', $id)->limit(10,0)->get()->getResultArray();}
							
							{loop $qiandaos $i}
								<div class="fuyou-20 bian-2 d-yuanjiao-50 baise">
									<img src="{dr_avatar($i.uid)}" height="30" width="30" alt="" class="d-touxiang-30">
								</div>
							{/loop}
								
							</div>
							<div class="pull-right d-wenzi-juzhong"> 
							{php $signin=\Phpcmf\Service::M()->db->table('member_qiandao')->where('uid', $member.uid)->where('quan', $id)->where('DATEDIFF(from_unixtime(`createtime`),now())=0')->get()->getRowArray();}
							{if $signin}
								<div class="d-kuan-70 d-neikuang-5-10 d-beijing-hui d-yuanjiao-50   d-quxian-0  ">
									<a href="/index.php?s=member&app=qiandao&c=home&m=index&quan={$id}">
										已签 <i class="fa fa-check" style="color: #ff5202;"></i>
									</a>
								</div>
							{else}
								<div class="d-kuan-70 d-neikuang-5-10 d-beijing-hui d-yuanjiao-50   d-quxian-0">
									<!--a  href="/index.php?s=member&app=qiandao&c=home&m=index"  href="javascript:;"-->
									{if $member}
										<a class="btn-signin" href="javascript:;" onClick="dr_qiandao()">
											签到 <i class="fa fa-hand-pointer-o" style="color: #ff5202;"></i>
										</a>
									{else}
										<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}" class="btn-signin">
											签到 <i class="fa fa-hand-pointer-o" style="color: #ff5202;"></i>
										</a>
									{/if}
								</div>
							{/if}
							</div>
						
						</div>					
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
 <style>
 	.d-qiandao-tanchu {
 		z-index: 999999;
 		position: fixed;
 		bottom: 0px;
 		width: 100%;
 		height: 100%;
 		overflow: auto;
 		background: #444444;
 		background-color: rgba(143, 143, 143, 0.9);
 	}
 	.d-qiandao-kuan {
 	    /* background-color: #eaeaea; */
 	    height: 300px;
 		width: 300px;
 	    /* width: 100%; */
 	    text-align: center;
 	    /*position: fixed;*/
 	    margin: 15% auto 0 auto;
 	    z-index: 99999;
 	}
 	.d-qiandao-beijing {
 	    /* background-color: #eaeaea; */
 		top:300px;
 		
 	    height: 300px;
 		width: 300px;
 	    /* width: 100%; */
 	    text-align: center;
 	    /*position: fixed;*/
 	    margin: 0 auto;
 	    z-index: 99999;
 		background-image:url('{HOME_THEME_PATH}qiandao/qiandaotu.png');
 	}
 	.d-qiandao-gao {
 		height: 120px;
 	}
 	.d-qiandao-zhi {
 		font-size: 25px;
 		color: #ff5202;
 	}
 	@media screen and (max-width: 990px) { /*褰撳睆骞曞昂瀵稿皬浜�1200px鏃讹紝搴旂敤涓嬮潰鐨凜SS鏍峰紡*/
 		.d-qiandao-kuan {
 		    /* background-color: #eaeaea; */
 		    height: 300px;
 			width: 300px;
 		    /* width: 100%; */
 		    text-align: center;
 		    /*position: fixed;*/
 		    margin: 60% auto 0 auto;
 		    z-index: 99999;
 		}
 		
 	}
 	/*.mfabufanhui img {
 		
 		margin-bottom: 20%;
 	    width: 300px;
 	    height: 300px;
 	}*/
 </style>
<script type="text/javascript">
	function dr_qiandao() {
		$.ajax({
			type: "GET",
			url: "/index.php?s=member&app=qiandao&c=home&m=dosign&quan={$id}",
			dataType: "json",
			success: function (res) {
				/*layer.msg(res.msg, {
					time: 500
				}, function() {
					location.reload();
				});*/
				$('#d-qiandao-zhi').html(res.data.zhi);
				$('#d-qiandao-zhi2').html(res.data.zhi);
				$('#d-qiandao-jingyan').html(res.data.jingyan);
				$('#d-qiandao-tian').html(res.data.tian);
				$('.d-qiandao-tanchu').show();
			},
			error: function(e) {}
		});
	}
	function d_m_qiandao2() {
		$('.d-qiandao-tanchu').hide();
		location.reload();
	}
</script>